Introduction

The goal of the project is to create a web page presentation using R Markdown that features a plot created with Plotly.

# Loading required package
r = getOption("repos")
r["CRAN"] = "http://cran.us.r-project.org"
options(repos = r)
install.packages("plotly")
## Installing package into 'C:/Users/Mah Di/Documents/R/win-library/3.4'
## (as 'lib' is unspecified)
## package 'plotly' successfully unpacked and MD5 sums checked
## 
## The downloaded binary packages are in
##  C:\Users\Mah Di\AppData\Local\Temp\RtmpgHIQr8\downloaded_packages
install.packages("plotly")
## Installing package into 'C:/Users/Mah Di/Documents/R/win-library/3.4'
## (as 'lib' is unspecified)
## package 'plotly' successfully unpacked and MD5 sums checked
## 
## The downloaded binary packages are in
##  C:\Users\Mah Di\AppData\Local\Temp\RtmpgHIQr8\downloaded_packages
library(plotly)
## Warning: package 'plotly' was built under R version 3.4.4
## Loading required package: ggplot2
## Warning: package 'ggplot2' was built under R version 3.4.4
## 
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## The following object is masked from 'package:stats':
## 
##     filter
## The following object is masked from 'package:graphics':
## 
##     layout
plot_ly(data = mtcars, x = ~wt, y = ~mpg, 
        color = ~as.factor(cyl), size = ~hp,
        text = ~paste("Weight: ", wt, '<br>MPG:', mpg),
        type = "scatter", mode = "markers") %>%
  layout(title = "Car Data")
## Warning: package 'bindrcpp' was built under R version 3.4.4
## Warning: `line.width` does not currently support multiple values.

## Warning: `line.width` does not currently support multiple values.

## Warning: `line.width` does not currently support multiple values.

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.